<#include "/common/h-ui-base-css.html">
<#include "/common/h-ui-base-js.html">
<script type="text/javascript" src="/lib/layer/2.4/layer.js"></script>
<body>
    <div class="page-container">
        <div>
            <table class="table table-border table-bordered table-bg">
                <thead>
                    <tr>
                        <th colspan="11" scope="col">信息填写情况</th>
                    </tr>
                    <tr class="text-c">
                        <th>项目编号</th>
                        <th>项目名称</th>
                        <th>公司需求</th>
                        <th>公司主营</th>
                    </tr>
                </thead>
                <tbody>
                <tr class="text-c">
                    <td>${entity.proId!}</td>
                    <td>${entity.proName!}</td>
                    <td>${entity.proCompanyRequire!}</td>
                    <td>${entity.proCompanyMain!}</td>
                    <td hidden>${entity.id!}</td>
                </tr>
            </tbody>
            </table>
            <table class="table table-border table-bordered table-bg mt-20">
                <thead>
                    <tr>
                        <th colspan="2" scope="col">上传文件情况</th>
                    </tr>
                </thead>
                <tbody>
                    <#if uploadFiles ??>
                        <#list uploadFiles as files>
                            <tr>
                                <th width="30%" rowspan="${files.size!}">${files.name!}</th>
                            <#if files.list?? &&((files.list?size>0))>
                                <#list files.list as d01>
                                    <tr>
                                    <td>${d01.projName!}</td>
                                    </tr>
                                </#list>
                            <#else >

                                    <td></td>

                            </#if>

                            </tr>
                        </#list>
                    </#if>

                </tbody>
            </table>
            <table class="table table-border table-bordered table-bg mt-20">
                <thead>
                    <tr>
                        <th colspan="2" scope="col" align="center">
                            <a href="javascript:;"  class="btn btn-danger radius" id="confirm">${nextStateDesc}</a>
                        </th>
                    </tr>
                </thead>
            </table>
        </div>
    </div>
</body>

<script type="text/javascript">
    $('#confirm').click(function () {
        layer.confirm('确定审核通过，进入下一个阶段？', {
            btn: ['审核','取消'] //按钮
        }, function(){
            var value = ${entity.id!};
            var state = ${nextState!};
            $.ajax({
                url : '/project-ins-upd-del/'+value,
                data : {proState:state,tm : new Date().getTime()},
                async : false,
                success : function(){
                    parent.$('#project_table').datagrid('reload');
                }
            });
            var index=parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        }, function(){

        });
    });
</script>